package com.fcat.common.user.mapper;

import com.fcat.springboot.mybatis.mapper.base.TsuantoneBaseMapper;
import com.fcat.common.user.entity.Organization;
import com.fcat.common.user.vo.OrganizationIdVO;
import com.fcat.common.user.vo.OrganizationSearchVO;
import com.fcat.common.user.vo.OrganizationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrganizationMapper extends TsuantoneBaseMapper<Organization> {
    List<OrganizationVO> getOrganizationTree(Map<String,Object> map);

    List<OrganizationIdVO> getChildrenIdByPId(Map<String,Object> map);

    List<OrganizationIdVO> getChildrenIdById(Map<String,Object> map);

    List<OrganizationSearchVO> search(Map<String, Object> map);

    List<Organization> getListByCompanyId(Map<String, Object> map);
}